<?php $registry = Zend_Registry::getInstance();
$currendPage = null;
	foreach ($this->container as $page){
		if ($page->isActive(true)){
            $currendPage = $page;
			foreach ($page->pages as $page_second){ 
                if (!isset($page_second->res) || (isset($page_second->res) && $registry->acl->isAllowed($registry->currentUser->get('role'), $page_second->res))){?>
    			<a href="<?php echo $page_second->getHref()?>" >
                    <div class="menu_second_item">
                        <?php echo $page_second->label;?>
                    </div>
                </a>
                <?php }
            }
            break;
        }
	} ?>